﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="UserSyncLog.aspx.vb" Inherits="Map.UserSyncLog" %>

<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>域用户同步日志列表</title>	
    	<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

		<link rel="stylesheet" type="text/css" href="/_grid/map_grid.css">
		<link rel="stylesheet" type="text/css" href="/_nav/menu.css">
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css">
		<link rel="stylesheet" type="text/css" href="/_controls/find/find.css">
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/_controls/number/number.js"></script>
		<script language="javascript" src="/_controls/lookup/selectBU.js"></script>
		<script language="javascript" src="/_nav/menu.js"></script>		
</head>
	<body MS_POSITIONING="GridLayout" style="padding:10px;" >
		<table style="FONT-SIZE: 9pt;" height="100%" cellSpacing="0" cellPadding="0" width="100%">
			<tr height="1">
				<td>
					<cnt:AppFind id="appFind" runat="server" />
				</td>
			</tr>
			<tr height="10">
				<td 
				</td>
			</tr>
			<tr height="1" valign =top>
				<td>
					<mnu:AppGridMenu id="appGridMenu" runat="server" />
				</td>
			</tr>
			<tr>
				<td>
					<cnt:AppGrid id="appGrid" runat="server" filter='<filter/>' MultiSelect="false"  />
				</td>
			</tr>
		</table>
	</body>
</html>

<script type="text/javascript" >
    // 快速查询中选择 BU 的 lookup
    function selectBUForLookup(o)
    {
        var sReturnValue
        if (o.parentElement.previousSibling.firstChild.id == "__appFind_BUName")
        {
            sReturnValue = _selectBU("company", "");
        }
        else
        {
            var HierarchyCode = "";
            if (Trim(document.getElementById("__appFind_BUName").value) != "" && document.getElementById("__appFind_BUName").code)
            {
                HierarchyCode = document.getElementById("__appFind_BUName").code;
            }
            sReturnValue = _selectBU("company", HierarchyCode);
        }

        if (sReturnValue == null) return;
        o.parentElement.previousSibling.firstChild.value = sReturnValue[1];
        o.parentElement.previousSibling.firstChild.code = sReturnValue[2];
    }

    // 触发查询事件
    function _Query(sLocation)
    {
        appGrid.frameElement.filter = appFind.queryxml;
        appGrid.frameElement.Query(sLocation);
    }

    function openDetailWin()
    {
        var arrTr = appGrid.frameElement.getSelected();
        if (!arrTr) return;
        
        var oid = arrTr[0].oid;
        var sPath = "UserSyncLogDetail.aspx?mode=3&oid=" + escape(oid); 		// 只需要修改这里即可
        openMyWin(sPath);
       
    }
</script>